var ZYRequestClient = require("../../utils/zy-request");
var requestClient;
const app = getApp();
Page({
  data:{
    navbarData:{
      showCapsule: 0, //是否显示左上角图标   1表示显示    0表示不显示
      title: '完善企业', //导航栏 中间的标题
      white:true
     },
     // 导航头的高度
     height: app.globalData.height * 2 + 20
  },
  onLoad() {
    requestClient = new ZYRequestClient();
  },
  onShow(){
    var _this = this;
    var userInfo = wx.getStorageSync('userInfo');
    requestClient.getUserDefaultCompany(userInfo.id,function(res){
      if(res.data.data == null){
        
      } else {
        _this.skip();
      }
    });
  },
  skip:function(e){
    wx.switchTab({
      url: '../tabbar/home/index',
    })
  }
})